#include "Error.h"

#include <stdarg.h>
#include <stdio.h>
#include <stdlib.h>

/* Using argument vectors so we can print variables 
 * to help with debugging. */

void Error (const char *p, ...)
{
	va_list args;
	va_start (args, p);
	vfprintf (stderr, p, args);
	va_end (args);
}

void Die (const char *p, ...)
{
	va_list args;
	va_start (args, p);
	vfprintf (stderr, p, args);
	va_end (args);

	exit (-1);
}
